﻿@model ArticleListVM

@{
    ViewBag.Title = Model.PageMeta!=null ? Model.PageMeta.Title : "新闻资讯";
}
@section header{
    @if (Model.PageMeta != null)
    {
        <meta name="keywords" content="@Model.PageMeta.Keyword" />
        <meta name="description" content="@Model.PageMeta.Description" />
    }
 }

<div class="banner" style="background:url(/Content/Desktop/img/banner/3.jpg)  no-repeat center center;">
</div>

<div class="container page-news">
   <div class="row">
       <div class="col-xs-8">
           <h2 class="title_2">新闻 & 媒体</h2>

           <ul class="list-news">
               @foreach (var item in Model.Articles)
               {
                   @Html.Partial("_SingleArticle", item)
               }
           </ul>
           <footer class="list-footer">
               <div class="row">
                   <div class="col-sm-7">
                       @Html.PagedListPager((IPagedList)Model.Articles, page => Url.Action("Index", new { page }))
                   </div>
                   <div class="col-sm-5  text-right">
                       <div style="padding-top:25px;">
                           总计 @Model.TotalCount 条
                       </div>
                   </div>
               </div>
           </footer>
       </div>
       <div class="col-xs-4">
           @Html.Partial("_ContactBox")
       </div>
   </div>
 
</div>




@section footer{
    <script>
        $(function () {
            $("#menu>li:nth-of-type(1)>a").addClass("active");
        })
    </script>
}
